#include "hzpch.h"
#include "VertexArray.h"
#include "Renderer.h"
#include "Hazel/platform/OpenGL/OpenGLVertexArray.h"

namespace Hazel{

    Ref<VertexArray> VertexArray::Create()
    {
        switch (Renderer::GetAPI())
        {
            case RendererAPI::API::None:         assert(false); return nullptr;
#ifdef HZ_PLATFORM_WINDOWS
            case RendererAPI::API::OpenGL:       return CreateRef<OpenGLVertexArray>();
#endif
        }
        assert(false);
        return nullptr;
    }
}